package com.sinosoft.emplmis.application.web.dto;

import com.sinosoft.framework.core.api.domain.UserOrgData;
import com.sinosoft.framework.core.common.utils.ObjectUtil;

public class UserOrgsData implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	private Integer orgId;
	private Integer pOrgId;
	private String orgName;
	private String pOrgName;
	public Integer getOrgId() {
		return orgId;
	}
	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}
	public Integer getPOrgId() {
		return pOrgId;
	}
	public void setPOrgId(Integer pOrgId) {
		this.pOrgId = pOrgId;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	public String getPOrgName() {
		return pOrgName;
	}
	public void setPOrgName(String pOrgName) {
		this.pOrgName = pOrgName;
	}
	
	/**
	 * 数据转换
	 * @param UserOrgsData
	 * @param UserOrgData
	 */
	public void toUserOrgsData(UserOrgsData userOrgsData, UserOrgData userOrgData) {
		try {
			ObjectUtil.oldToNew(userOrgsData, userOrgData, "serialVersionUID");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
